from .models import User,Area
from rest_framework.serializers import ModelSerializer
from rest_framework.exceptions import ValidationError
class UserSer(ModelSerializer):
    class Meta:
        model = User
        fields = ["area","phone","email","address","nickname","img"]

class AreaSer(ModelSerializer):
    read_only = True
    class Meta:
        model = Area
        fields = ['name']